package structuralPatterns.composite;

public class Leaf extends Component{

    public Leaf(String name){
        this.name = name;
    }
    public void add(Component c){

    }

    public void remove(Component c){

    }

    public void eachChild(){
        System.out.println(name+"执行了");
    }
}
